import {Space, Button,Checkbox, } from 'antd';
import React from 'react';
 export const dbCol=[
    {
        align:'center',
        title:'序号',
        dataIndex:"number",
        key:"number"
    },
    {
      align:'center',
      title:'数据源名称',
      dataIndex:"sourceName",
      key:"sourceName"
    },
    {
      align:'center',
      title:'数据库类型',
      dataIndex:"dbType",
      key:"dbType"
    },
    {
      align:'center',
      title:'ip地址',
      dataIndex:"ip",
      key:"ip"
    },
    {
        align:'center',
        title:'端口',
        dataIndex:"port",
        key:"port"
      },
      {
        align:'center',
        title:'用户名',
        dataIndex:"userName",
        key:"userName"
      },
      {
        align:'center',
        title:'部门',
        dataIndex:"department",
        key:"department"
      },
      {
        align:'center',
        title:'备注',
        dataIndex:"tip",
        key:"tip"
      },
      {
        align:'center',
        title:'创建时间',
        dataIndex:"createTime",
        key:"createTime"
      },
      {
        align:'center',
        title:'操作',
        key:"action",
        render:(text, record) => (
            <Space size="middle">
            <Button size="small" type="primary">选择</Button>
            </Space>
        )
      },
];
export const dbData=[
    {
        key: '1',
        number:'1',
        sourceName: 'John',
        dbType: 'mysql',
        ip: '192.168.1.1',
        port: 3306,
        userName:'geogre',
        department:'公安',
        tip:'mysql',
        createTime:'2020-6-14 09:07:00'
      },
      {
          key: '2',
          number:'2',
          sourceName: 'John',
          dbType: 'mysql',
          ip: '192.168.1.1',
          port: 3306,
          userName:'geogre',
          department:'公安',
          tip:'mysql',
          createTime:'2020-6-14 09:07:00'
        },
        {
          key: '3',
          number:'3',
          sourceName: 'John',
          dbType: 'mysql',
          ip: '192.168.1.1',
          port: 3306,
          userName:'geogre',
          department:'公安',
          tip:'mysql',
          createTime:'2020-6-14 09:07:00'
        },
];
export const tableCol=[
    {
        align:'center',
        title:'序号',
        dataIndex:"number",
        key:"number"
    },
    {
        align:'center',
        title:'数据表中文名称',
        dataIndex:"cName",
        key:"cName"
    },
    {
        align:'center',
        title:'数据表英文名称',
        dataIndex:"eName",
        key:"eName"
    },
    {
        align:'center',
        title:'数据量',
        dataIndex:"data",
        key:"data"
    },
    {
        align:'center',
        title:'数据列数',
        dataIndex:"column",
        key:"column"
    },
    {
        align:'center',
        title:'归属部门',
        dataIndex:"department",
        key:"department"
    },
    {
        align:'center',
        title:'描述',
        dataIndex:"descirption",
        key:"descirption"
    },
    {
        align:'center',
        title:'创建时间',
        dataIndex:"createTime",
        key:"createTime"
    },
    {
        align:'center',
        title:'操作',
        key:"action",
        render:(text, record) => (
            <Space size="middle">
            <Button size="small" type="primary">选择</Button>
            </Space>
        )
    },
];
export const tableData=[
    {
        key: '1',
        number:'1',
        cName: '测试表',
        eName: 'test',
        data: 500,
        column: 8,
        department:'公安',
        descirption:'mysql测试',
        createTime:'2020-6-14 09:07:00'
      },
      {
          key: '1',
          number:'2',
          cName: '测试表',
          eName: 'test',
          data: 500,
          column: 8,
          department:'公安',
          descirption:'mysql测试',
          createTime:'2020-6-14 09:07:00'
        },
        {
          key: '1',
          number:'3',
          cName: '测试表',
          eName: 'test',
          data: 500,
          column: 8,
          department:'公安',
          descirption:'mysql测试',
          createTime:'2020-6-14 09:07:00'
        },
];
export const filedCol=[
    {
        align:'center',
        title:<Checkbox>姓名</Checkbox>,
        dataIndex:"name",
        key:"name"
    },
    {
      align:'center',
      title:<Checkbox>性别</Checkbox>,
      dataIndex:"sex",
      key:"sex"
    },
    {
      align:'center',
      title:<Checkbox>数学</Checkbox>,
      dataIndex:"math",
      key:"math"
    },
    {
      align:'center',
      title:<Checkbox>英语</Checkbox>,
      dataIndex:"english",
      key:"english"
    },
    {
      align:'center',
      title:<Checkbox>名次</Checkbox>,
      dataIndex:"order",
      key:"order"
    },
];
export const filedData=[
    {
        key: '1',
        name:'李华',
        sex: '男',
        math: 99,
        english: 60,
        order: 32,
      },
      {
        key: '2',
        name:'李华',
        sex: '男',
        math: 99,
        english: 60,
        order: 32,
      },
      {
        key: '3',
        name:'李华',
        sex: '男',
        math: 99,
        english: 60,
        order: 32,
      },
      {
        key: '4',
        name:'李华',
        sex: '男',
        math: 99,
        english: 60,
        order: 32,
      },
      
];
export const connectColLeft=[
    {
        align:'center',
        title:'编码',
        dataIndex:"code",
        key:"code"
    },
    {
      align:'center',
      title:'中文名称',
      dataIndex:"cName",
      key:"cName"
    },
    {
      align:'center',
      title:'英文名称',
      dataIndex:"eName",
      key:"eName"
    },
      {
        align:'center',
        title:'关联关系',
        key:"action",
        render:(text, record) => (
            <Space size="middle">
            <input placeholder="请输入表中文名称"/>
            </Space>
        )
      },
];
export const connectDataLeft=[
    {
        code:'1',
        cName: '性别',
        eName: 'XB'
      },
      {
        code:'2',
        cName: '婚姻状况',
        eName: 'HYZK'
      },
      {
        code:'3',
        cName: '文化程度',
        eName: 'WHCD'
      },
      {
        code:'4',
        cName: '公民身份证号码',
        eName: 'GMSFZHM'
      },
];
export const connectColRight=[
    {
        align:'center',
        title:'编码',
        dataIndex:"code",
        key:"code"
    },
    {
      align:'center',
      title:'中文名称',
      dataIndex:"cName",
      key:"cName"
    },
    {
      align:'center',
      title:'英文名称',
      dataIndex:"eName",
      key:"eName"
    },
];
export const connectDataRight=[
    {
        code:'1',
        cName: '性别',
        eName: 'XB'
      },
      {
        code:'2',
        cName: '婚姻状况',
        eName: 'HYZK'
      },
      {
        code:'3',
        cName: '文化程度',
        eName: 'WHCD'
      },
      {
        code:'4',
        cName: '公民身份证号码',
        eName: 'GMSFZHM'
      },
];
export const sourceData=[
  {
    index:1,
    code:'00123',
    sourceName:'街道信息',
    sourceProvider:'市公安局',
    shareType:'无条件共享',
    shareMethod:'共享平台方式',
    sourceFormat:'数据库',
    state:'已连接',
  },
  {
    index:2,
    code:'00123',
    sourceName:'街道信息',
    sourceProvider:'市公安局',
    shareType:'无条件共享',
    shareMethod:'共享平台方式',
    sourceFormat:'电子文件',
    state:'已连接',
  },
  {
    index:3,
    code:'00123',
    sourceName:'街道信息',
    sourceProvider:'市公安局',
    shareType:'无条件共享',
    shareMethod:'共享平台方式',
    sourceFormat:'接口',
    state:'已连接',
  },
  {
    index:4,
    code:'00123',
    sourceName:'街道信息',
    sourceProvider:'市公安局',
    shareType:'无条件共享',
    shareMethod:'共享平台方式',
    sourceFormat:'数据库',
    state:'已连接',
  },
];
export const unsourceData=[
  {
    index:1,
    code:'00123',
    sourceName:'街道信息',
    sourceProvider:'市公安局',
    shareType:'无条件共享',
    shareMethod:'共享平台方式',
    sourceFormat:'数据库',
    state:'未连接',
  },
  {
    index:2,
    code:'00123',
    sourceName:'街道信息',
    sourceProvider:'市公安局',
    shareType:'无条件共享',
    shareMethod:'共享平台方式',
    sourceFormat:'电子文件',
    state:'未连接',
  },
  {
    index:3,
    code:'00123',
    sourceName:'街道信息',
    sourceProvider:'市公安局',
    shareType:'无条件共享',
    shareMethod:'共享平台方式',
    sourceFormat:'接口',
    state:'未连接',
  },
  {
    index:4,
    code:'00123',
    sourceName:'街道信息',
    sourceProvider:'市公安局',
    shareType:'无条件共享',
    shareMethod:'共享平台方式',
    sourceFormat:'数据库',
    state:'未连接',
  },
];

export const fileCol=[
{
    align:'center',
    title:'选择',
    key:"select",
    render:(text, record) => (
      <Checkbox></Checkbox>
    )
},
{
    align:'center',
    title:'序号',
    dataIndex:"number",
    key:"number"
},
{
    align:'center',
    title:'文件名称',
    dataIndex:"fname",
    key:"fname"
},
{
    align:'center',
    title:'文件类型',
    dataIndex:"ftype",
    key:"ftype"
},
{
    align:'center',
    title:'ip端口',
    dataIndex:"ip",
    key:"ip"
},
{
    align:'center',
    title:'目录地址',
    dataIndex:"address",
    key:"address"
},
{
    align:'center',
    title:'所属部门',
    dataIndex:"department",
    key:"department"
},
{
  align:'center',
  title:'备注',
  dataIndex:"tip",
  key:"tip"
},
{
    align:'center',
    title:'创建时间',
    dataIndex:"createTime",
    key:"createTime"
},
];

export const fileData=[
  {
    number:1,
    fname:'测试',
    ftype:'excel',
    ip:'192.168.1.1：8080',
    address:'upload/abd',
    department:'公安',
    tip:'测试用例',
    createTime:'2020-1-3 00：00：00',
  },
  {
    number:2,
    fname:'测试',
    ftype:'excel',
    ip:'192.168.1.1：8080',
    address:'upload/abd',
    department:'公安',
    tip:'测试用例',
    createTime:'2020-1-3 00：00：00',
  },
  {
    number:3,
    fname:'测试',
    ftype:'excel',
    ip:'192.168.1.1：8080',
    address:'upload/abd',
    department:'公安',
    tip:'测试用例',
    createTime:'2020-1-3 00：00：00',
  },
]

export const fconnectColLeft=[
  {
      align:'center',
      title:'编码',
      dataIndex:"code",
      key:"code"
  },
  {
    align:'center',
    title:'中文名称',
    dataIndex:"cName",
    key:"cName"
  },
  {
    align:'center',
    title:'英文名称',
    dataIndex:"eName",
    key:"eName"
  },
    {
      align:'center',
      title:'关联映射',
      key:"action",
      render:(text, record) => (
          <Space size="middle">
          <input placeholder="请输入表中文名称"/>
          </Space>
      )
    },
];
export const fconnectDataLeft=[
  {
      code:'1',
      cName: '性别',
      eName: 'XB'
    },
    {
      code:'2',
      cName: '婚姻状况',
      eName: 'HYZK'
    },
    {
      code:'3',
      cName: '文化程度',
      eName: 'WHCD'
    },
    {
      code:'4',
      cName: '公民身份证号码',
      eName: 'GMSFZHM'
    },
];
export const fconnectColRight=[
  {
      align:'center',
      title:'编码',
      dataIndex:"code",
      key:"code"
  },
  {
    align:'center',
    title:'文件名称',
    dataIndex:"fname",
    key:"fname"
  },
  {
    align:'center',
    title:'文件目录',
    dataIndex:"address",
    key:"address"
  },
  {
    align:'center',
    title:'文件描述',
    dataIndex:"discription",
    key:"discription"
  },
];
export const fconnectDataRight=[
  {
      code:'1',
      fname: '文件1',
      address: '12/123/123',
      discription:"aaa"
    },
    {
      code:'2',
      fname: '文件2',
      address: '12/123/123',
      discription:"aaa"
    },
    {
      code:'3',
      fname: '文件3',
      address: '12/123/123',
      discription:"aaa"
    },
    {
      code:'4',
      fname: '文件4',
      address: '12/123/123',
      discription:"aaa"
    },
];

export const apiCol=[
  {
      align:'center',
      title:'选择',
      key:"select",
      render:(text, record) => (
        <Checkbox></Checkbox>
      )
  },
  {
      align:'center',
      title:'序号',
      dataIndex:"number",
      key:"number"
  },
  {
      align:'center',
      title:'接口名称',
      dataIndex:"apiName",
      key:"apiName"
  },
  {
      align:'center',
      title:'请求方式',
      dataIndex:"request",
      key:"request"
  },
  {
      align:'center',
      title:'返回类型',
      dataIndex:"retrunType",
      key:"retrunType"
  },
  {
      align:'center',
      title:'接口地址',
      dataIndex:"address",
      key:"address"
  },
  {
      align:'center',
      title:'归属部门',
      dataIndex:"department",
      key:"department"
  },
  {
    align:'center',
    title:'备注',
    dataIndex:"tip",
    key:"tip"
  },
  {
      align:'center',
      title:'创建时间',
      dataIndex:"createTime",
      key:"createTime"
  },
  ];
  
  export const apiData=[
    {
      number:1,
      apiName:'测试',
      request:'get',
      retrunType:'json',
      address:'http://afaeagfragr/a/greggr',
      department:'公安',
      tip:'测试用例',
      createTime:'2020-1-3 00：00：00',
    },
    {
      number:2,
      apiName:'测试',
      request:'get',
      retrunType:'json',
      address:'http://afaeagfragr/a/greggr',
      department:'公安',
      tip:'测试用例',
      createTime:'2020-1-3 00：00：00',
    },
    {
      number:3,
      apiName:'测试',
      request:'get',
      retrunType:'json',
      address:'http://afaeagfragr/a/greggr',
      department:'公安',
      tip:'测试用例',
      createTime:'2020-1-3 00：00：00',
    },
  ]